require(["jquery","api","common"],function($,Api,Common){
  var qms = {
    config: {},
    $container: $(".details"),
    _renderViewList: function () {
      var id = Common.getQueryVariable("id");
      var result = Api.EditQusetion(id);
      if(result.errcode == 0){
        QM.answer.init(result.data.q_content, $("#answer").val());
        qms.$container.find("#question").html(result.data.q_content);
        qms.$container.find("#title").html(result.data.title)
      }
    },
  }
  qms._renderViewList();
})